package cn.richard.demo.tax.web;

import java.time.LocalDateTime;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.richard.demo.tax.service.HelloRuleFireService;

@RestController
public class TestCtrller {
	@Autowired
	private HelloRuleFireService helloRuleService;
	
	@RequestMapping("/hello")
	public Object hello() {
		return LocalDateTime.now();
	}
	
    @RequestMapping("/hello/fire")
    public String hello_fire(){
    	helloRuleService.fire();
        return "OK";
    }
}
